package com.erp.framework.util.mainmenu;

import java.util.ArrayList;

public class MenuGroup implements java.io.Serializable {
    private String companyCode;
    private String menuId;
    private String parentMenuId;
    private String name;
    private String groupId;
    private String menuType;
    private String menuOrder;
    private String menuUrl;
    private byte[] menuIcon;
    private byte[] menuImage;
    private String viewLevel;
    private String createLevel;
    private String updateLevel;
    private String deleteLevel;
    private String viewDisplay;
    private MenuGroupDelegate menuGroupDg = new MenuGroupDelegate();
    private String rootMenuId;

    public MenuGroup() {
    }

    public MenuGroup(String companyCode, String menuId, String parentMenuId, String name, String groupId, String menuType,
            String menuOrder, String menuUrl, byte[] menuIcon, byte[] menuImage, String viewLevel, String createLevel,
            String updateLevel, String deleteLevel, String viewDisplay, String rootMenuId) {

        this.companyCode = companyCode;
        this.menuId = menuId;
        this.parentMenuId = parentMenuId;
        this.name = name;
        this.groupId = groupId;
        this.menuType = menuType;
        this.menuOrder = menuOrder;
        this.menuUrl = menuUrl;
        this.menuIcon = menuIcon;
        this.menuImage = menuImage;
        this.viewLevel = viewLevel;
        this.createLevel = createLevel;
        this.updateLevel = updateLevel;
        this.deleteLevel = deleteLevel;
        this.viewDisplay = viewDisplay;
        this.rootMenuId = rootMenuId;
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public String getMenuId() {
        return menuId;
    }

    public String getParentMenuId() {
        return parentMenuId;
    }

    public String getName() {
        return name;
    }

    public String getGroupId() {
        return groupId;
    }

    public String getMenuType() {
        return menuType;
    }

    public String getMenuOrder() {
        return menuOrder;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public byte[] getMenuIcon() {
        return menuIcon;
    }

    public byte[] getMenuImage() {
        return menuImage;
    }

    public String getViewLevel() {
        return viewLevel;
    }

    public String getCreateLevel() {
        return createLevel;
    }

    public String getUpdateLevel() {
        return updateLevel;
    }

    public String getDeleteLevel() {
        return deleteLevel;
    }

    public String getViewDisplay() {
        return viewDisplay;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public void setParentMenuId(String parentMenuId) {
        this.parentMenuId = parentMenuId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType;
    }

    public void setMenuOrder(String menuOrder) {
        this.menuOrder = menuOrder;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public void setMenuIcon(byte[] menuIcon) {
        this.menuIcon = menuIcon;
    }

    public void setMenuImage(byte[] menuImage) {
        this.menuImage = menuImage;
    }

    public void setViewLevel(String viewLevel) {
        this.viewLevel = viewLevel;
    }

    public void setCreateLevel(String createLevel) {
        this.createLevel = createLevel;
    }

    public void setUpdateLevel(String updateLevel) {
        this.updateLevel = updateLevel;
    }

    public void setDeleteLevel(String deleteLevel) {
        this.deleteLevel = deleteLevel;
    }

    public void setViewDisplay(String viewDisplay) {
        this.viewDisplay = viewDisplay;
    }

    public ArrayList getMenuGroupList(String companyCode, String userId, String moduleName) {
        return menuGroupDg.getMenuGroupList(companyCode, userId, moduleName);
    }

    public String getRootMenuId() {
        return rootMenuId;
    }

    public void setRootMenuId(String rootMenuId) {
        this.rootMenuId = rootMenuId;
    }

}